I have a script that is to be run after the Windows scheduler stops the server. |
Re: Running a script after Windows scheduler shutdown and restarts the server I think you should provide a little more info. Such as "I want to schedule a shut down of the DOORS service, run VBA maintenance on the DOORS database, re-start the DOORS service and when its running, run a DOORS client batch-job to do more stuff".
|
Re: Running a script after Windows scheduler shutdown and restarts the server llandale - Fri Feb 18 16:07:42 EST 2011
After the server is restarted I want to run a DOORS client batch-job to do more stuff. In the script, I want to make sure the DOORS server is restarted before continuing execution of the script. What sort of command is available to do this check? |
Re: Running a script after Windows scheduler shutdown and restarts the server lsand - Fri Feb 18 16:42:46 EST 2011
Why not check if the service is running? tasklist /FI "SERVICES eq DOORS DB Server 8.2" | find /I /N "doorsd.exe" if "%ERRORLEVEL%"=="0" echo DOORS 8.2 Server is running
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
|
Re: Running a script after Windows scheduler shutdown and restarts the server Mathias Mamsch - Fri Feb 18 17:40:06 EST 2011
Why not check if the service is running? tasklist /FI "SERVICES eq DOORS DB Server 8.2" | find /I /N "doorsd.exe" if "%ERRORLEVEL%"=="0" echo DOORS 8.2 Server is running
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
|
Re: Running a script after Windows scheduler shutdown and restarts the server lsand - Mon Feb 21 10:32:02 EST 2011 I think you need a non-DXL "script", perhaps VBA, to do this work. I don't know how to "ask" if the DOORS service is running, but if I did it would be some sort of "pingTo 36677@DoorsSever" system command. Failing that, you could attempt to start the doors.exe client in batch mode; where the batch code simply create a certain file and exists DOORS, you would then see of that file got created to determine if doors.exe started. And if it did you could start the doors.exe to do your actual work, and if not go to sleep for 15 minutes and try again.
OK, maybe you want a DXL script connected to some OTHER database running, and try to see if the 1st DOORS service is running. |